import { get, post } from "../request";

const instanceModel = {
  queryByPage(pageDto) {
    return post("/modelInstanceModels/queryByPage", pageDto);
  },
  add(modelInstanceModels) {
    return post("/modelInstanceModels/add", modelInstanceModels);
  },
  edit(modelInstanceModels) {
    return post("/modelInstanceModels/edit", modelInstanceModels);
  },
  deleteById(id) {
    return get("/modelInstanceModels/deleteById", id);
  },
  queryById(id) {
    return get("/modelInstanceModels/queryById", id);
  },
  queryId(instanceName) {
    return get("/modelInstanceModels/queryId", instanceName);
  },
  queryDeviceId(pointId, instanceId) {
    return get("/modelInstanceModels/queryDeviceId", pointId, instanceId);
  },
};

export default instanceModel;
